$(document).ready(function () {
    
    //Adds a click listener to all input elements
    //with the class "confirmButton" that requires
    //a confirmation not to be prevented
    $("input.confirmButton").click(function(e) {
	if (!confirm("Are you sure?"))
	    e.preventDefault();
    });
});